<?php

/**
 * Object representing the File, which is composition to the Document object (part of the Library table in the database)
 * @author Dragan
 * @date 2012-06-21
 */
class File {

    protected $_id;
    protected $_filename; //original file name
    protected $_newname; //rename made by librarian (sequencial)
    protected $_url;
    protected $_size;
    protected $_type;
    protected $_content;
    protected $_tmp_name;
    protected $_fullText;

    public function __construct() {
        $this->_id = "";
        $this->_filename = "";
        $this->_url = "";
        $this->_size = "";
        $this->_type = "";
        $this->_content = "";
        $this->_tmp_name = "";
        $this->_fullText = "";
    }

    /**
     * @return the $_fullText
     */
    public function getFullText() {
        return $this->_fullText;
    }

    /**
     * @param field_type $_fullText
     */
    public function setFullText($_fullText) {
        $this->_fullText = $_fullText;
    }

    /**
     * @return the $_id
     */
    public function getId() {
        return $this->_id;
    }

    /**
     * @return the $_filename
     */
    public function getFilename() {
        return $this->_filename;
    }

    /**
     * @return the $_url
     */
    public function getUrl() {
        return $this->_url;
    }

    /**
     * @return the $_size
     */
    public function getSize() {
        return $this->_size;
    }

    /**
     * @return the $_type
     */
    public function getType() {
        return $this->_type;
    }

    /**
     *
     * @return type 
     */
    public function getContent() {
        return $this->_content;
    }

    /**
     *
     * @return type 
     */
    public function getTmpName() {
        return $this->_tmp_name;
    }

    /**
     *
     * @return type 
     */
    public function getNewName() {
        return $this->_newname;
    }

    /**
     * @param field_type $_id
     */
    public function setId($_id) {
        $this->_id = $_id;
    }

    /**
     * @param field_type $_filename
     */
    public function setFilename($_filename) {
        $this->_filename = $_filename;
    }

    /**
     * @param field_type $_url
     */
    public function setUrl($_url) {
        $this->_url = $_url;
    }

    /**
     * @param field_type $_size
     */
    public function setSize($_size) {
        $this->_size = $_size;
    }

    /**
     * @param field_type $_type
     */
    public function setType($_type) {
        $this->_type = $_type;
    }

    /**
     *
     * @param type $_content 
     */
    public function setContent($_content) {
        $this->_content = $_content;
    }

    /**
     *
     * @param type $_tmp_name 
     */
    public function setTmpName($_tmp_name) {
        $this->_tmp_name = $_tmp_name;
    }

    /**
     *
     * @param type $_new_name 
     */
    public function setNewName($_new_name) {
        $this->_newname = $_new_name;
    }

}

?>